﻿import java.io.*;
import java.util.Scanner;
// chѭѫng trình copy sӱ dөng luӗng hѭӟng kí tӵ
public  class ghifile {
public  static void main(String[] args)throws IOException {
Scanner sc=new Scanner(System.in);
String hvt,mssv,quequan,gioitinh;
String tuoi;
String a="DAI HOC BACH KHOA HA NOI";
System.out.print("nhap hvt:");
hvt=sc.nextLine();
System.out.print("nhap mssv:");
mssv=sc.nextLine();
System.out.print("que quan:");
quequan=sc.nextLine();
System.out.print("nhap gioi tinh:");
gioitinh=sc.nextLine();
System.out.print("nhap tuoi:");
tuoi=sc.nextLine();
File outputFile = new File("D:/out.txt");
FileWriter out = new FileWriter(outputFile);
out.write(a);
out.write(hvt);
out.write(mssv);
out.write(quequan);
out.write(gioitinh);
out.write(tuoi);

out.close();
}
}